/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PanelJustificacionTardanza.java
 *
 * Created on 07-nov-2011, 10:42:34
 */
package reportehorario.vista;

import java.awt.Color;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Pc1
 */
public class PanelJustificacionTardanza extends javax.swing.JPanel {

    /** Creates new form PanelJustificacionTardanza */
    public PanelJustificacionTardanza() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        lblMiembro = new javax.swing.JLabel();
        lblFecha = new javax.swing.JLabel();
        cmbMiembro = new javax.swing.JComboBox();
        ccFecha = new org.freixas.jcalendar.JCalendarCombo();
        tabTardanzaFalta = new javax.swing.JTabbedPane();
        panelTardanza = new javax.swing.JPanel();
        lblJustificacionTardanza = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtaJustificacionTardanza = new javax.swing.JTextArea();
        lblMotivoTardanza = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        panelFalta = new javax.swing.JPanel();
        lblMotivoFalta = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        txtaJustificacionFalta = new javax.swing.JTextArea();
        lblJustificacionFalta = new javax.swing.JLabel();
        jComboBox2 = new javax.swing.JComboBox();
        btnGuardar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel1.setText("Justificación de Tardanza");

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos"));

        lblMiembro.setText("Miembro:");

        lblFecha.setText("Fecha:");

        cmbMiembro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblMiembro)
                    .addComponent(lblFecha))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(cmbMiembro, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(ccFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 181, Short.MAX_VALUE))
                .addContainerGap(83, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmbMiembro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblMiembro))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFecha)
                    .addComponent(ccFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        lblJustificacionTardanza.setText("Justificación:");

        txtaJustificacionTardanza.setColumns(20);
        txtaJustificacionTardanza.setLineWrap(true);
        txtaJustificacionTardanza.setRows(5);
        jScrollPane1.setViewportView(txtaJustificacionTardanza);

        lblMotivoTardanza.setText("Motivo de tardanza:");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout panelTardanzaLayout = new javax.swing.GroupLayout(panelTardanza);
        panelTardanza.setLayout(panelTardanzaLayout);
        panelTardanzaLayout.setHorizontalGroup(
            panelTardanzaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelTardanzaLayout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(panelTardanzaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 353, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblJustificacionTardanza)
                    .addGroup(panelTardanzaLayout.createSequentialGroup()
                        .addComponent(lblMotivoTardanza)
                        .addGap(28, 28, 28)
                        .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(43, Short.MAX_VALUE))
        );
        panelTardanzaLayout.setVerticalGroup(
            panelTardanzaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelTardanzaLayout.createSequentialGroup()
                .addContainerGap(20, Short.MAX_VALUE)
                .addGroup(panelTardanzaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblMotivoTardanza)
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addComponent(lblJustificacionTardanza)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33))
        );

        tabTardanzaFalta.addTab("Tardanza", panelTardanza);

        lblMotivoFalta.setText("Motivo de falta:");

        txtaJustificacionFalta.setColumns(20);
        txtaJustificacionFalta.setLineWrap(true);
        txtaJustificacionFalta.setRows(5);
        jScrollPane2.setViewportView(txtaJustificacionFalta);

        lblJustificacionFalta.setText("Justificación:");

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout panelFaltaLayout = new javax.swing.GroupLayout(panelFalta);
        panelFalta.setLayout(panelFaltaLayout);
        panelFaltaLayout.setHorizontalGroup(
            panelFaltaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelFaltaLayout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addGroup(panelFaltaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelFaltaLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 353, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblJustificacionFalta)
                    .addGroup(panelFaltaLayout.createSequentialGroup()
                        .addComponent(lblMotivoFalta)
                        .addGap(33, 33, 33)
                        .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(40, Short.MAX_VALUE))
        );
        panelFaltaLayout.setVerticalGroup(
            panelFaltaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelFaltaLayout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(panelFaltaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblMotivoFalta)
                    .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(lblJustificacionFalta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(29, Short.MAX_VALUE))
        );

        tabTardanzaFalta.addTab("Falta", panelFalta);

        btnGuardar.setText("Guardar");
        btnGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarActionPerformed(evt);
            }
        });

        btnCancelar.setText("Cancelar");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(238, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addGap(224, 224, 224))
            .addGroup(layout.createSequentialGroup()
                .addGap(143, 143, 143)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(147, 147, 147))
            .addGroup(layout.createSequentialGroup()
                .addGap(103, 103, 103)
                .addComponent(tabTardanzaFalta, javax.swing.GroupLayout.PREFERRED_SIZE, 434, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(123, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(199, 199, 199)
                .addComponent(btnGuardar)
                .addGap(82, 82, 82)
                .addComponent(btnCancelar)
                .addContainerGap(233, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(tabTardanzaFalta, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnGuardar)
                    .addComponent(btnCancelar))
                .addContainerGap(28, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnGuardarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnGuardar;
    private org.freixas.jcalendar.JCalendarCombo ccFecha;
    private javax.swing.JComboBox cmbMiembro;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblFecha;
    private javax.swing.JLabel lblJustificacionFalta;
    private javax.swing.JLabel lblJustificacionTardanza;
    private javax.swing.JLabel lblMiembro;
    private javax.swing.JLabel lblMotivoFalta;
    private javax.swing.JLabel lblMotivoTardanza;
    private javax.swing.JPanel panelFalta;
    private javax.swing.JPanel panelTardanza;
    private javax.swing.JTabbedPane tabTardanzaFalta;
    private javax.swing.JTextArea txtaJustificacionFalta;
    private javax.swing.JTextArea txtaJustificacionTardanza;
    // End of variables declaration//GEN-END:variables
}
